package com.jianneng.jdg.model.homeactivity;

import com.example.com.jianneng.jdg.R;
import com.example.com.jianneng.jdg.R.id;
import com.example.com.jianneng.jdg.R.layout;
import com.example.com.jianneng.jdg.R.menu;

import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;

public class AppayActivity extends BaseActivity implements OnClickListener{
private LinearLayout mBack;
private TextView mApply;
private EditText mUser,mPhone,mIdCard;
@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_appay);
		init();
	}
	private void init() {
		mBack = (LinearLayout) findViewById(R.id.exam_back);
		mApply = (TextView) findViewById(R.id.user_apply);
		mUser =(EditText) findViewById(R.id.import_user);
		mPhone=(EditText) findViewById(R.id.import_phone);
		mIdCard=(EditText) findViewById(R.id.import_idcard);
		mBack.setOnClickListener(this);
		mApply.setOnClickListener(this);
	}
	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.exam_back:
			finish();
			break;
		case R.id.user_apply:
			Toast.makeText(this, "姓名："+mUser.getText().toString()+"电话："+mPhone.getText().toString()+"身份证:"+mIdCard.getText().toString(),1).show();
			break;

		default:
			break;
		}
		
	}

}
